<?php
	$userClass = "";
	$categoryClass = "";
	$postClass = "";
	$commentClass = "";
	$dashboardClass = "";
	$cityClass = "";
	switch ($this->params['controller']) {
		case 'groups':
		case 'users': $userClass = 'class = "current"'; break;
		case 'categories': $categoryClass = 'class = "current"'; break;
		case 'tags':
		case 'posts': $postClass ='class = "current"'; break;
		case 'comments': $commentClass = 'class = "current"'; break;
		case 'cities': $cityClass = 'class = "current"'; break;
		default: $dashboardClass = 'class = "current"';
	}
?>
<div id="topmenu">
    <ul>
       	<li <?php echo $dashboardClass; ?>><?php echo $html->link('Tổng quan', array('controller' => 'dashboard', 'action' => 'index', 'admin' => 1)); ?></li>
        <li <?php if ($session->read('Auth.User.group_id') == 1) {echo $userClass; ?>><?php echo $html->link('Thành viên', array('controller' => 'users', 'action' => 'index', 'admin' => 1)); }?></li>
		<li <?php echo $postClass; ?>><?php echo $html->link('Tin rao', array('controller' => 'posts', 'action' => 'index', 'admin' => 1)); ?></li>
		<li <?php echo $categoryClass; ?>><?php echo $html->link('Danh mục', array('controller' => 'categories', 'action' => 'index', 'admin' => 1)); ?></li>
		<li <?php echo $commentClass; ?>><?php echo $html->link('Bình luận', array('controller' => 'comments', 'action' => 'index', 'admin' => 1)); ?></li>
		<li <?php echo $cityClass; ?>><?php echo $html->link('Thành phố', array('controller' => 'cities', 'action' => 'index', 'admin' => 1)); ?></li>
		
    </ul>
</div>